Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Call an agent from an agent
~Lily Nonwetherjip 15.Jan.04 03:36 PM a Web browser
Applications Development 6.0.3 Windows XP


If you must - you can do it like this (u should really bite the bullet and combine the two agents - it's less hassle than you think!):

Declarations:
Dim db As NotesDatabase
Dim agent As NotesAgent
Dim agentNameG As String
Dim kwdSuccess As String
Dim AgError As String
Dim sAgentProcess As String
Dim docsProcessed As Integer

Sub Initialise
Dim s As New NotesSession
Set db = s.CurrentDatabase

Dim agentLog As New NotesLog("Agent log")
Call agentLog.OpenAgentLog

On Error Goto processError

Call Main

Exit Sub

ProcessError:
Call agentLog.LogAction("Error:"+ Str(Err)& Error$)
Exit Sub
End Sub

Sub Main
Call agentNameRun("agCustNHold")
If agent.RunOnServer = 0 Then
Call agentNameRun("agCustHold")
end if
End Sub

Function agentNameRun(agentName As String) As String
agentNameG = agentName
Set agent = db.GetAgent(agentName)
End Function


HTH,
R




Call an agent from an agent (~Fred Regerover... 15.Jan.04)
. . RE: Call an agent from an agent (~Mario Lopkiste... 15.Jan.04)
. . RE: Call an agent from an agent (~Lily Nonwether... 15.Jan.04)
. . . . RE: Call an agent from an agent (~Fred Regerover... 15.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS